<?php

namespace App\Http\Controllers;

use App\Category;
use Illuminate\Http\Request;


class CategoryController extends Controller
{
    /**
     * 添加分类
     */
    public function addCategory(){
        $parent = Category::where('p_id',0)->get();
        return view('article-category',['parent' => $parent]);
    }
}
